import QtQuick 2.0
import QtQuick.Controls 2.2


ProgressBar {
    id:control
    value: 0.5

    background: Rectangle{
        implicitWidth: 200
        implicitHeight: 16
        radius: 8
        color: 'grey'
    }

    contentItem: Item{
        implicitWidth: 200
        implicitHeight: 4

        Rectangle {
            width: control.visualPosition * parent.width
            height: parent.height
            radius: 8
            color: 'green'
        }
    }
}
